<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <td>序号</td>
        <td>姓名</td>
        <td> 性别</td>
        <td>年级</td>
        <td>专业</td>
        <td>操作</td>
    </tr>
    {% for foo in showall %}
    <tr>
        <td>{{ foo.id }}</td>
        <td>{{ foo.stu_name }}</td>
        <td>{{ foo.sex }}</td>
        <td>{{foo.classs }}</td>
        <td>{{ foo.specialized }}</td>
        <td>
            <a href="{% url 'get_stu' foo.id%}">查看</a>
            <a href="{% url 'dele' foo.id%}">删除</a>
        </td>
    </tr>
    {% endfor %}
    {% if curr > 1 %}
        <a href="{% url 'stuList' %}?pag={{ lastnumber }}">上一页</a>
    {% endif %}
    <b>当前页&nbsp;&nbsp;第{{ curr }}页</b>
    {% if curr < maxpages %}
        <a href="{% url 'stuList' %}?pag={{ nextnumber }}">下一页</a>
    {% endif %}

</table>



</body>
</html>